package com.ding;

import java.io.InputStream;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author dingyuanwei
 * @version 建立時間：Dec 1, 20104:32:41 PM
 * 類別說明:
 */
public class DownloadAction extends ActionSupport{
	public InputStream getDownloadFile()
	{
		return ServletActionContext.getServletContext().getResourceAsStream(
				"/temp/Struts2.ppt");
	}
	
	@Override
	public String execute() throws Exception
	{
		return SUCCESS;
	}
}
